package com.woniuxy.shiro;

import org.apache.shiro.authc.AuthenticationToken;
import org.springframework.boot.autoconfigure.neo4j.Neo4jProperties;

/**
 * @ClassName JWTToken
 * @Description JWTToken类
 * @Author 王维鑫
 * @Date 2021/5/13 0013 10:30
 * @Version 1.0
 */
public class JWTToken implements AuthenticationToken {

    public JWTToken(String token){
        this.token=token;
    }
    private String token;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
